cmake_minimum_required(VERSION 3.12)
project(AQP_Qt5 VERSION 1.0.0)

file(GLOB children RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
foreach(child ${children})
    if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${child})
            if(${child} MATCHES ".git|aqp")
                continue()
            endif()
        if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${child}/CMakeLists.txt)
            message(STATUS "add subdir dir='${child}'")
            add_subdirectory(${child})
        endif()
    endif()
endforeach()